package cn.wolfcode.crm.query;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.LinkedHashMap;
import java.util.Map;

@Setter
@Getter
public class FormalStudentChartQueryObject extends QueryObject {
    private String keyword;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;
    private String groupBy = "payment_type";
    public static Map<String,String> groupTypes = new LinkedHashMap<>();
    static {
        groupTypes.put("status","学员状态");
        groupTypes.put("payment_type","付款方式");
    }
}
